import {RouterModule, Routes} from '@angular/router';
import {NgModule} from '@angular/core';
import {AftApplyOrderComponent} from './aft-apply-order.component';

const routes: Routes = [
    {path: '', component: AftApplyOrderComponent,
        children: [
            {path: '', redirectTo: 'list', pathMatch: 'full'},
            {path: 'add', loadChildren: './add-aft-apply-order/add-aft-apply-order.module#AddAftApplyOrderModule'},
            {path: 'list', loadChildren: './list-aft-apply-order/list-aft-apply-order.module#ListAftApplyOrderModule'},
            {path: 'modify', loadChildren: './modify-aft-apply-order/modify-aft-apply-order.module#ModifyAftApplyOrderModule'},
            {path: 'report', loadChildren: './report-aft-apply-order/report-aft-apply-order.module#ReportAftApplyOrderModule'},
            {path: 'refund', loadChildren: './refund-aft-apply-order/refund-aft-apply-order.module#RefundAftApplyOrderModule'},
            {path: 'refund_good',
            loadChildren: './refund-good-aft-apply-order/refund-good-aft-apply-order.module#RefundGoodAftApplyOrderModule'},
        ]
    }
];

@NgModule({
    imports: [RouterModule.forChild(routes)],
    exports: [RouterModule]
})
export class AftApplyOrderRoutingModule {
}
